<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="perm" uri="/WEB-INF/tld/perm.tld"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
	<script>var ctx="${ctx}";</script>
	<head>
	    <meta charset="utf-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    <title>首媒管理平台</title>
	    <meta name="keywords" content="体验,友好,高级管理台,易用,高性能,高扩展性,bootstrap框架,响应式后台">
	    <meta name="description" content="这是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
	    <meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
		<meta http-equiv="expires" content="Wed, 26 Feb 209908:21:57 GMT"> 
	    <!--[if lt IE 8]>
	    <meta http-equiv="refresh" content="0;ie.html" />
	    <![endif]-->
	    <link rel="shortcut icon" href="favicon.ico"> 
		<link href="${ctx}/static/css/bootstrap.min.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/font-awesome.min.css?v=4.4.0?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/plugins/footable/footable.core.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/plugins/summernote/summernote.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/plugins/summernote/summernote-bs3.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/plugins/laypage/laypage.css?v=${static_version}"  rel="stylesheet">
		<link href="${ctx}/static/css/plugins/chosen/chosen.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/animate.min.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/plugins/jsTree/style.min.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/js/plugins/layer/laydate/laydate.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/plugins/webuploader/webuploader.css?v=${static_version}" rel="stylesheet">
		<link href="${ctx}/static/css/style.min.css?v=4.0.0" rel="stylesheet">
	    
	</head>
	
	<style>
        .jstree-open>.jstree-anchor>.fa-folder:before{content:"\f07c"}.jstree-default .jstree-icon.none{width:0}
    </style>
	
	<body class="gray-bg">
       	<div class="ibox float-e-margins">
               <div class="ibox-content">
	               	<div class="row">
	       				<div class="col-sm-2">
	                   		<div id="using_json"></div>
						</div>
						<div class="col-sm-10">
					    	<div class="ibox float-e-margins">
					    		<div class="ibox-content">
					                <form class="form-group" id="sysFile_table_form">	
					                	<input type="hidden" name="orderBy" value="create_date desc">
					                	<input type="hidden" name="parent" id="sysFile_table_parent">
					                	<div class="row">
					                        <div class="col-md-2 col-sm-2"><input name="keyword" type="text" placeholder="请输入关键字" class="form-control" /></div>
											<div class="col-md-1 col-sm-1">
												<button id="sysFile_table_search" type="button" class="btn btn-outline btn-block btn-primary">查询</button>
											</div>
										    <div class="col-md-1 col-sm-1 pull-right ">
												<a  onclick="clickInsertGet()" class="btn btn-block btn-outline btn-primary">添加</a>
										    </div>
					                    </div>
					                </form>
									<table id="sysFile_table" data-params='{"1":"安全日志","2":"2"}' data-action="${ctx}/file/find" data-datatable="true"  class="footable table table-stripped toggle-arrow-tiny">
									  	<thead>
										  	<tr>
												<th  data-sort-ignore="true" data-title ="sortNo" data-hide="phone,tablet" data-toggle="true">排序号</th>
												<th  data-sort-ignore="true" data-title ="updateUser" >最后更新人</th>
												<th  data-sort-ignore="true" data-title ="parentId" >父级id</th>
												<th  data-sort-ignore="true" data-title ="text" >部门名称</th>
												<th  data-sort-ignore="true" data-title ="remark" >部门描述</th>
												<th  data-sort-ignore="true" data-title ="createUser" >记录生成人</th>
												<th  data-sort-ignore="true" data-title ="createDate" data-hide="phone,tablet">记录生成时间</th>
												<th  data-sort-ignore="true" data-title ="structure" >部门的层级结构</th>
												<th  data-sort-ignore="true" data-title ="updateDate" data-hide="phone,tablet">最后更新时间</th>
											</div>
										</div>
									</div>
								</div>
		                   </div>
		              </div>
		          </div>
			</div>
		
	<script src="${ctx}/static/js/jquery.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/bootstrap.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/footable/footable.all.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/validate/jquery.validate.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/validate/messages_zh.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/webuploader/webuploader.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/summernote/summernote.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/summernote/summernote-zh-CN.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/chosen/chosen.jquery.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/layer/laydate/laydate.js?v=${static_version}"></script>
	<script src="${ctx}/static/plugins/laypage/laypage.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/eModal.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/plugins/jsTree/jstree.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/cookie.js?v=?v=${static_version}""></script>
	<script src="${ctx}/static/common/custom-table.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/content.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/common/common.js?v=${static_version}"></script>
	
	<script>
		$(document).ready(function() {
			$("#using_json").jstree({
				'core' : {
					'data' : {
						"url" : "${ctx}/file/json",
						"data" : function (node) {
							$("#sysFile_table_parent").val($.trim(node.id));
							init_page_table();
							return { "parent" :$.trim(node.id)};
						}
					}
				}
			});
		});
	</script>
	
	</body>
</html>